$(function () {

    $('#btnAdd').click(function () {
        window.location.href = `/Product/CreateOrEdit`
    })

    $('#btnSave').click(function () {
    

       window.location.href=`/Product/Save`
    })

    $('btnCancel').click(function () {
        window.location.href=`/Product/Index`
    })

    $('btnDel').click(function () {
        let msg="你确定要删除我吗？"
        if (confirm==msg) {
            window.location.href=`/Product/Delete`
        }else
        {
            console.log('用户取消了');
        }

      
    })
    $('btnEdit').click(function () {
        window.location.href=`/Product/CreateOrEdit`
    })



})